<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Coleção Resultante</title>
		<link href="css/bootstrap.css" rel="stylesheet">
	</head>
	<body>
		<div class="row">
			<div class="span12">
				<h3>Resultado da Consulta JPQL</h3>
			</div>
		</div>
		<div class="row">
			<div class="span12">
				<f:view>
					<h:dataTable styleClass="table table-striped table-hover" border="0" value="#{consulta.colecao}" var="entidade">
						<h:column id="column1">
							<f:facet name="header">
								<h:outputText value="Entidades resultantes"></h:outputText>
							</f:facet>
							<h:outputText value="#{entidade}"></h:outputText>
						</h:column>
					</h:dataTable>
					<p/>
					<h:form styleClass="form-actions">
						<h:commandLink action="formConsulta.jsp">
							<h:outputText styleClass="btn btn-primary" value="Voltar"></h:outputText>
						</h:commandLink>
					</h:form>
				</f:view>
			</div>
		</div>
	</body>
</html>